package com.http;

import com.http.method.Request;

import java.util.concurrent.PriorityBlockingQueue;

/**
 * Created by mac_wk on 14-11-20.
 */
public class KNetWork {
    private static KNetWork ourInstance ;
    private PriorityBlockingQueue<Request<?>> mCacheQueue;
    public static KNetWork getInstance(PriorityBlockingQueue<Request<?>> mCacheQueue) {
        if (ourInstance==null)
            ourInstance = new KNetWork(mCacheQueue);
        return ourInstance;
    }

    private KNetWork(PriorityBlockingQueue<Request<?>> mCacheQueue) {
        this.mCacheQueue = mCacheQueue;
    }

}
